package com.cloud.logger.zchain.zchainserver.mongo;


import com.cloud.logger.zchain.zchainserver.entity.AngelaLoggerProjectEveryDay;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * User: zhengyt
 * Date: 2017/11/2
 * Time: 11:29
 */
public interface AngelaProjectWeekRepository extends BaseMongoRepository<AngelaLoggerProjectEveryDay,Serializable> {

    List<AngelaLoggerProjectEveryDay> findByProjectAndBugCreateTimeBetween(String code, Date startTime, Date endTime);

    long countByProjectAndCreatedDateAfter(String code, Date startTime);

}
